package com.storeroompda.tool;

import android.content.Context;
import android.content.pm.PackageManager;

public class CheckVerisonUtils {
    public static String getVersionName(Context mContext) {
        String versionName= "0.0";
        try {
            versionName = mContext.getPackageManager().
                    getPackageInfo(mContext.getPackageName(), 0).versionName;
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
        }
        finally {
            return versionName;
        }
    }
}
